import {observable,action,computed} from 'mobx'
import { ajax } from '../api';

class Book{
    @observable bookList:any=null;

    @action getBookList=async(payload: any)=>{
        let res=await ajax.booklist({pageNum: payload})
        res.code=200&&(this.bookList=res.bookList)
        
    }
}

export default new Book() 